package io.first_acquaintance;

/**
 * @author haomin
 * @date 2022/05/08 17:27
 **/
import java.io.File;

public class Main8 {
    public static void main(String[] args) {
//        File src = new File("../hello/a.txt");
//        File dest = new File("../world/a.txt");
//
//        System.out.println(src.renameTo(dest));

        File file1 = new File("D:\\电影\\文件操作\\a\\b\\c\\hello.txt");
        File file2 = new File("D:\\电影\\文件操作\\a\\b\\f\\hello.txt");
        System.out.println(file1.renameTo(file2));
    }
}